package xcmg.device.dao.mapper.warehouse;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import xcmg.device.dao.entity.warehouse.EnableWarehouseControlDO;

@Repository
@Mapper
public interface EnableWarehouseControlMapper {
    int deleteByPrimaryKey(String id);

    int insert(EnableWarehouseControlDO record);

    int insertSelective(EnableWarehouseControlDO record);

    EnableWarehouseControlDO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(EnableWarehouseControlDO record);

    int updateByPrimaryKey(EnableWarehouseControlDO record);

    int checkIsEnable(@Param("departmentId")String departmentId,@Param("orgId")String orgId);

    EnableWarehouseControlDO getData(@Param("departmentId")String departmentId,@Param("orgId")String orgId);
}